/* 
 * File:   plane.h
 * Author: chaterolas
 *
 * Created on 24 de junio de 2009, 09:02 PM
 */

#ifndef _PLANE_H
#define	_PLANE_H

#include "primitive.h"

class Plane : public Primitive {
public:
    Plane(Material *material, double px, double py, double pz,
          double nx, double ny, double nz);
    virtual ~Plane();

    double intersect(Ray *r);
    Vector3D *getNormal(Vector3D &pos);
    int getType();

private:
    Vector3D *pos;
    Vector3D *normal;
};

#endif	/* _PLANE_H */

